New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What #open# should we use to read a txt file inside python.py ?
"r")
open("file.txt",
0 Votes
2 Answers
10th Sep 2021, 3:17 PM
Gen Lao
can anybody tell me what has changed
"r")
=
contents")
file
file.close()
initial
open("newfile.txt"
print("finished")
print("reading
print(file.read())
1 Vote
1 Answer
27th Mar 2019, 4:41 AM
胡軒豪
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Isogram Detector
2 Votes
Need suggestions what improvements can I do in it
3 Votes
pls how do I write comments in code
0 Votes
What is the generally preferred way of assigning values in Python?
1 Votes
Hello
0 Votes
Kotlin programing
0 Votes
Please help me understanding the output. I posted output with code in the file attached.
0 Votes
I can't understand the problem , please help ...
1 Votes
[SOLVED] About split() Function
1 Votes
Which coding language?
2 Votes